class OscSoftBannerEntity {
	int code;
	List<OscSoftBanner> data;
	String message;

	OscSoftBannerEntity({this.code, this.data, this.message});

	OscSoftBannerEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		if (json['data'] != null) {
			data = new List<OscSoftBanner>();(json['data'] as List).forEach((v) { data.add(new OscSoftBanner.fromJson(v)); });
		}
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		data['message'] = this.message;
		return data;
	}
}

class OscSoftBanner {
	String img;
	int objId;
	String name;
	int weight;
	int objType;
	String detail;
	String href;
	int id;
	String pubDate;

	OscSoftBanner({this.img, this.objId, this.name, this.weight, this.objType, this.detail, this.href, this.id, this.pubDate});

	OscSoftBanner.fromJson(Map<String, dynamic> json) {
		img = json['img'];
		objId = json['obj_id'];
		name = json['name'];
		weight = json['weight'];
		objType = json['obj_type'];
		detail = json['detail'];
		href = json['href'];
		id = json['id'];
		pubDate = json['pubDate'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['img'] = this.img;
		data['obj_id'] = this.objId;
		data['name'] = this.name;
		data['weight'] = this.weight;
		data['obj_type'] = this.objType;
		data['detail'] = this.detail;
		data['href'] = this.href;
		data['id'] = this.id;
		data['pubDate'] = this.pubDate;
		return data;
	}
}
